from rest_framework import serializers
from apps.recruit.models import City, Enterprise, Recruit
# 热门城市序列化器
class HotCitySerializers(serializers.ModelSerializer):

    class Meta:
        model = City
        fields = '__all__'

# 企业序列化器
class EnterpeisSerializer(serializers.ModelSerializer):

    class Meta:
        model = Enterprise
        fields = '__all__'


# 职位序列化器
class RecruitSerializers(serializers.ModelSerializer):
    enterprise_id = serializers.IntegerField()
    class Meta:
        model = Recruit
        fields = '__all__'
